package main

import (
	"fmt"
	"sync"
)

func main() {
	var wg sync.WaitGroup
	for i := 0; i < 10000; i++ {
		go func() {
			wg.Add(1)
			wg.Done()
		}()
		go func() {
			wg.Wait()
		}()
	}

	wg.Wait()
	fmt.Println("main.....")
}
func addFun(wg *sync.WaitGroup) {
	wg.Add(1)
	wg.Done()
}
func addWait(wg *sync.WaitGroup) {
	//wg.Don
}
